import type { Column } from './types/ant'

// 考勤表格配置
export const ATTENDANCE_COLUMNS = [
  {
    title: '客户中文名',
    key: 'customerName',
    dataIndex: 'customerName',
    fixed: 'left',
  },
  {
    title: '项目中文名',
    key: 'projectName',
    dataIndex: 'projectName',
    fixed: 'left',
  },
  {
    title: '项目编码',
    key: 'projectCode',
    dataIndex: 'projectCode',
    fixed: 'left',
  },
  {
    title: '员工姓名',
    key: 'employeeName',
    dataIndex: 'employeeName',
    fixed: 'left',
  },
  {
    title: '工作日期',
    key: 'workDate',
    dataIndex: 'workDate',
  },
  {
    title: '星期',
    key: 'weekday',
    dataIndex: 'weekday',
  },
  {
    title: 'MD类型',
    key: 'MD',
    dataIndex: 'MD',
  },
  {
    title: '正常时长（天）',
    key: 'normalDuration',
    dataIndex: 'normalDuration',
  },
  {
    title: '加班时长（天）',
    key: 'totalOverTimeDay',
    dataIndex: 'totalOverTimeDay',
  },
  {
    title: '主动加班时长（小时）',
    key: 'voluntaryOverTimeHour',
    dataIndex: 'voluntaryOverTimeHour',
  },
  {
    title: '默认加班时长（分钟）',
    key: 'defaultOverTimeMinute',
    dataIndex: 'defaultOverTimeMinute',
  },
  {
    title: '打卡起止时间',
    key: 'checkTime',
    dataIndex: 'checkTime',
  },
  {
    title: 'MD类型起止时间',
    key: 'vacationTime',
    dataIndex: 'vacationTime',
  },
  {
    title: '报客户级别',
    key: 'customerLevel',
    dataIndex: 'customerLevel',
  },
  {
    title: '项目阶段',
    key: 'projectPhase',
    dataIndex: 'projectPhase',
  },
  {
    title: '备注',
    key: 'remark',
    dataIndex: 'remark',
    width: 200,
  },
  {
    title: '立项编码',
    key: 'projectApprovalCode',
    dataIndex: 'projectApprovalCode',
  },
  {
    title: '投入分类',
    key: 'investmentClassification',
    dataIndex: 'investmentClassification',
  },
  {
    title: '考勤异常',
    key: 'attendanceException',
    dataIndex: 'attendanceException',
  },
  {
    title: '异常补充说明',
    key: 'exceptionComment',
    dataIndex: 'exceptionComment',
    width: 200,
  },
]

// 加班表格配置
export const OVERTIME_COLUMNS: Column[] = [
  {
    title: '员工姓名',
    key: 'employeeName',
    dataIndex: 'employeeName',
  },
  {
    title: '主动加班时长（小时，按月累计）',
    key: 'totalVoluntaryOverTimeHour',
    dataIndex: 'totalVoluntaryOverTimeHour',
  },
  {
    title: '主动加班时长（天，按月累计）',
    key: 'totalVoluntaryOverTimeDay',
    dataIndex: 'totalVoluntaryOverTimeDay',
  },
  {
    title: '默认加班工时（分钟，按月累计）',
    key: 'totalDefaultOverTimeMinute',
    dataIndex: 'totalDefaultOverTimeMinute',
  },
  {
    title: '默认加班工时（天，按月累计）',
    key: 'totalDefaultOverTimeDay',
    dataIndex: 'totalDefaultOverTimeDay',
  },
  {
    title: '累计加班（天，按月累计）',
    key: 'totalOverTimeDay',
    dataIndex: 'totalOverTimeDay',
  },
]
